package com.bjx.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc: 用户职位关联数据实体
 * @author: liushuai
 * @date: 2022/10/15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user_post")
@Schema(title = "UserPost",description = "用户职位关联")
public class UserPostEntity {
      /**
      * 用户职位Id
      */
      @TableId(type = IdType.AUTO)
      @Schema(title = "userPostId",description = "用户职位Id")
      private  Long userPostId; 
      
      /**
      * 组织机构Id
      */
      @Schema(title = "orgId",description = "组织机构Id")
      private  Long orgId; 
      
      /**
      * 职位Id
      */
      @Schema(title = "postId",description = "职位Id")
      private  Long postId; 
      
      /**
      * 用户Id
      */
      @Schema(title = "userId",description = "用户Id")
      private  Long userId; 
      
      /**
      * 数据权限
      */
      @Schema(title = "dataCode",description = "数据权限")
      private  Byte dataCode;
      
}